package com.haipumi.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.haipumi.beans.GoodsModel;
import com.haipumi.beans.haipumi_product;
import com.haipumi.biz.GoodsBiz;
import com.haipumi.mapper.GoodsMapper;

@Service("goodsBiz")
public class GoodsBizImpl implements GoodsBiz {

	@Autowired
	private GoodsMapper goodsMapper;
	
	@Override
	public haipumi_product findGoodByPid(String pid) {
		return goodsMapper.findGoodsByPid(Integer.parseInt(pid));
	}

	@Override
	public List<GoodsModel> findRecord(String elid) {
		return goodsMapper.findRecord(Integer.parseInt(elid));
	}

}
